<div class="pager_wrapper">
<div class="pager" th:unless="${#lists.isEmpty(products)}">
    <ul>
        <li th:each="num : ${#numbers.sequence(1, result.totalPages)}">
            <a th:href="'javascript:updatePageProducts(' + ${num} + ');'"  th:text="${num}" th:class="${result.page == num} ? 'active'"></a>
        </li>
    </ul>
</div>
</div>
